package com.mindcraft.websocket.Runner;

import com.mindcraft.websocket.config.TioWebsocketStarter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class MindCraftApplicationRunner implements ApplicationRunner {

    @Autowired
    private TioWebsocketStarter tioWebsocketStarter;

    @Override
    public void run(ApplicationArguments args) throws Exception {



        tioWebsocketStarter.start();
    }
}